package com.zlikun.lq.l_11_2_1;

public class ServletExceptionMain {

	public static  void testException() {
		String s = null;
		try{
			if(s.equals("111")){
				System.out.println("===============");
			}
		}catch(Exception e){
			throw new ServletException("021001","抛出可认识的异常信息");
		}
	}
	
	public static void main(String[] args) {
		try{
			testException();
		}catch(ServletException e){
			System.out.println(e.getRespCode()+","+e.getRespMsg());
		}
	}

}
